class ImagesController < ApplicationController
  def pull_image
    volunteer = params[:class_name].constantize.find(params[:id])
    send_file "#{Rails.root}/public#{volunteer.send(params[:attr] + '_url')}",:disposition => 'inline', :type=>"application/jpg", :x_sendfile=>true
  end
end